package dao;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UserTab entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_tab", catalog = "leko")
public class UserTab implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userAcc;
	private String pwdNor;
	private String pwdPho;
	private String trueName;
	private String idNumber;
	private String phone;
	private String mail;
	private String question1;
	private String answer1;
	private String question2;
	private String answer2;
	private String question3;
	private String answer3;
	private Timestamp createTime;
	private Timestamp modTime;
	private Short securityLv;
	private Short accountStatus;
	private String emailUrl;
	private String secretEmailStatus;
	private String secretEmailUrl;
	private String pwdBackCode;
	private String avatar;
	private Short adminLvl;
	private String nickName;

	// Constructors

	/** default constructor */
	public UserTab() {
	}

	/** minimal constructor */
	public UserTab(String userAcc, String pwdNor) {
		this.userAcc = userAcc;
		this.pwdNor = pwdNor;
	}

	/** full constructor */
	public UserTab(String userAcc, String pwdNor, String pwdPho,
			String trueName, String idNumber, String phone, String mail,
			String question1, String answer1, String question2, String answer2,
			String question3, String answer3, Timestamp createTime,
			Timestamp modTime, Short securityLv, Short accountStatus,
			String emailUrl, String secretEmailStatus, String secretEmailUrl,
			String pwdBackCode, String avatar, Short adminLvl, String nickName) {
		this.userAcc = userAcc;
		this.pwdNor = pwdNor;
		this.pwdPho = pwdPho;
		this.trueName = trueName;
		this.idNumber = idNumber;
		this.phone = phone;
		this.mail = mail;
		this.question1 = question1;
		this.answer1 = answer1;
		this.question2 = question2;
		this.answer2 = answer2;
		this.question3 = question3;
		this.answer3 = answer3;
		this.createTime = createTime;
		this.modTime = modTime;
		this.securityLv = securityLv;
		this.accountStatus = accountStatus;
		this.emailUrl = emailUrl;
		this.secretEmailStatus = secretEmailStatus;
		this.secretEmailUrl = secretEmailUrl;
		this.pwdBackCode = pwdBackCode;
		this.avatar = avatar;
		this.adminLvl = adminLvl;
		this.nickName = nickName;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "user_id", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "user_acc", nullable = false, length = 20)
	public String getUserAcc() {
		return this.userAcc;
	}

	public void setUserAcc(String userAcc) {
		this.userAcc = userAcc;
	}

	@Column(name = "pwd_nor", nullable = false, length = 20)
	public String getPwdNor() {
		return this.pwdNor;
	}

	public void setPwdNor(String pwdNor) {
		this.pwdNor = pwdNor;
	}

	@Column(name = "pwd_pho", length = 30)
	public String getPwdPho() {
		return this.pwdPho;
	}

	public void setPwdPho(String pwdPho) {
		this.pwdPho = pwdPho;
	}

	@Column(name = "true_name", length = 20)
	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	@Column(name = "id_number", length = 18)
	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	@Column(name = "phone", length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "mail", length = 30)
	public String getMail() {
		return this.mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	@Column(name = "question1")
	public String getQuestion1() {
		return this.question1;
	}

	public void setQuestion1(String question1) {
		this.question1 = question1;
	}

	@Column(name = "answer1")
	public String getAnswer1() {
		return this.answer1;
	}

	public void setAnswer1(String answer1) {
		this.answer1 = answer1;
	}

	@Column(name = "question2")
	public String getQuestion2() {
		return this.question2;
	}

	public void setQuestion2(String question2) {
		this.question2 = question2;
	}

	@Column(name = "answer2")
	public String getAnswer2() {
		return this.answer2;
	}

	public void setAnswer2(String answer2) {
		this.answer2 = answer2;
	}

	@Column(name = "question3")
	public String getQuestion3() {
		return this.question3;
	}

	public void setQuestion3(String question3) {
		this.question3 = question3;
	}

	@Column(name = "answer3")
	public String getAnswer3() {
		return this.answer3;
	}

	public void setAnswer3(String answer3) {
		this.answer3 = answer3;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "mod_time", length = 19)
	public Timestamp getModTime() {
		return this.modTime;
	}

	public void setModTime(Timestamp modTime) {
		this.modTime = modTime;
	}

	@Column(name = "securityLv")
	public Short getSecurityLv() {
		return this.securityLv;
	}

	public void setSecurityLv(Short securityLv) {
		this.securityLv = securityLv;
	}

	@Column(name = "accountStatus")
	public Short getAccountStatus() {
		return this.accountStatus;
	}

	public void setAccountStatus(Short accountStatus) {
		this.accountStatus = accountStatus;
	}

	@Column(name = "emailUrl", length = 200)
	public String getEmailUrl() {
		return this.emailUrl;
	}

	public void setEmailUrl(String emailUrl) {
		this.emailUrl = emailUrl;
	}

	@Column(name = "secretEmailStatus")
	public String getSecretEmailStatus() {
		return this.secretEmailStatus;
	}

	public void setSecretEmailStatus(String secretEmailStatus) {
		this.secretEmailStatus = secretEmailStatus;
	}

	@Column(name = "secretEmailUrl")
	public String getSecretEmailUrl() {
		return this.secretEmailUrl;
	}

	public void setSecretEmailUrl(String secretEmailUrl) {
		this.secretEmailUrl = secretEmailUrl;
	}

	@Column(name = "pwdBackCode", length = 36)
	public String getPwdBackCode() {
		return this.pwdBackCode;
	}

	public void setPwdBackCode(String pwdBackCode) {
		this.pwdBackCode = pwdBackCode;
	}

	@Column(name = "avatar", length = 50)
	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	@Column(name = "adminLvl")
	public Short getAdminLvl() {
		return this.adminLvl;
	}

	public void setAdminLvl(Short adminLvl) {
		this.adminLvl = adminLvl;
	}

	@Column(name = "nickName", length = 30)
	public String getNickName() {
		return this.nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

}